import React, {useEffect, useState} from 'react';
import {View,} from '@tarojs/components';
import {Field, Input, Tag} from "@taroify/core"

import styles from './index.module.scss';
import AddressDetail from "@/mall/pages/addresses/AddressDetail";

const Index: React.FC = () => {
    const [addressList, setAddressList] = useState<any>([]);
    useEffect(() => {
        load();
    }, []);

    const load = async () => {


    };


    return (
        <View className={styles.page}>
            <View className={styles.page_head}>
                {
                    addressList.map((item, index) => <AddressDetail></AddressDetail>)
                }
            </View>
            <View className={styles.page_body}>

            </View>
            <View className={styles.page_foot}>
                <View className={styles.page_foot_button}>
                    新建收货地址
                </View>
            </View>

        </View>
    );
};

export default Index;
